<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>用户注册 - Spring图书借阅系统</title>
    <link rel="stylesheet" href="css/style.css">
</head>
<body>
    <!-- LOGO区 -->
    <header class="logo-area">
        <div class="container">
            <h1>📚 Spring图书借阅系统</h1>
            <p>一个现代化的图书管理平台</p>
        </div>
    </header>

    <!-- 顶部导航栏 -->
    <nav class="navbar">
        <div class="container">
            <div class="nav-brand">
                <h2>图书借阅系统</h2>
            </div>
            <ul class="nav-menu">
                <!-- 导航菜单将通过JavaScript动态生成 -->
            </ul>
        </div>
    </nav>

    <!-- 主体内容区 -->
    <main class="main-content">
        <div class="container">
            <!-- 注册表单区域 -->
            <section class="login-section">
                <div class="login-card">
                    <h2>用户注册</h2>
                    <!-- 用户注册表单 -->
                    <form id="registerForm">
                        <!-- 用户名输入框 -->
                        <div class="form-group">
                            <label for="username">用户名</label>
                            <input type="text" id="username" placeholder="请输入用户名">
                            <span class="error-message" id="usernameError"></span>
                        </div>
                        <!-- 真实姓名输入框 -->
                        <div class="form-group">
                            <label for="realName">真实姓名</label>
                            <input type="text" id="realName" placeholder="请输入真实姓名">
                            <span class="error-message" id="realNameError"></span>
                        </div>
                        <!-- 联系电话输入框 -->
                        <div class="form-group">
                            <label for="phone">联系电话</label>
                            <input type="text" id="phone" placeholder="请输入联系电话">
                            <span class="error-message" id="phoneError"></span>
                        </div>
                        <!-- 密码输入框 -->
                        <div class="form-group">
                            <label for="password">密码</label>
                            <input type="password" id="password" placeholder="请输入密码">
                            <span class="error-message" id="passwordError"></span>
                        </div>
                        <!-- 确认密码输入框 -->
                        <div class="form-group">
                            <label for="confirmPassword">确认密码</label>
                            <input type="password" id="confirmPassword" placeholder="请再次输入密码">
                            <span class="error-message" id="confirmPasswordError"></span>
                        </div>
                        <!-- 注册按钮 -->
                        <button type="submit" class="btn btn-primary btn-block">注册</button>
                    </form>
                    <!-- 表单底部链接 -->
                    <div class="form-footer">
                        <p>已有账号？<a href="login.html">立即登录</a></p>
                    </div>
                </div>
            </section>
        </div>
    </main>

    <!-- 页脚 -->
    <footer class="footer">
        <div class="container">
            <p>&copy; 2025 Spring图书借阅系统. All rights reserved.</p>
            <p>基于Spring Boot和MyBatis-Plus构建</p>
        </div>
    </footer>

    <!-- 引入JavaScript文件 -->
    <script src="js/script.js"></script>
</body>
</html>